package br.com.frbb.ugvbr.robot;

public class MotorFactory {
	
	private static Motor leftMotor;
	private static Motor rightMotor;
	
	static Motor getLeftMotor() {
		
		if(leftMotor == null) {
			leftMotor = new Motor(0, 4, 1, 5);
		}
		
		return leftMotor;
	}
	
	static Motor getRightMotor() {
		
		if(rightMotor == null) {
			rightMotor = new Motor(2, 6, 3, 7);
		}
		
		return rightMotor;
	}
	
}
